package com.xuebusi.toutiao.admin.api.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_user")
public class UserEntity {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("mobile")
    private String mobile;

    @TableField("name")
    private String name;

    // 头像url
    @TableField("photo")
    private String photo;

    // 个人简介
    @TableField("intro")
    private String intro;

    @TableField("email")
    private String email;
}
